package com.lujianfei.redpacketstat.database.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey


@Entity(tableName = "user")
data class UserEntity(

    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,

    @ColumnInfo(name = "userName")
    var userName: String? = null,

    @ColumnInfo(name = "status")
    var status: Int = 0, // 0: 未处理 1:已处理

    @ColumnInfo(name = "updateTime")
    var updateTime: Long = System.currentTimeMillis(),

    @ColumnInfo(name = "createTime")
    var createTime: Long = System.currentTimeMillis(),

    @Ignore
    var statusString: String = "",

    @Ignore
    var amount: Double = 0.0
)